/*************************************
Copyright 2011 Chinua Iloabachie, Pradnya Khutafale, Siyi Liu, Junichi Suzuki, and The University of Massachusetts, Boston (http://code.google.com/p/tabletuml/)


Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

  http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
 
*************************************/



package touchMe.baseClass;

import java.util.ArrayList;

import android.util.Log;

public class Diagram {

	private ArrayList<Element> elements;
	private String helpText;
	private int zoomLevel;
	private static Diagram diagram;
	private boolean isNewDiagram=false;
	private String filename=null;
	
	public String getFilename() {
		return filename;
	}

	public void setFilename(String filename) {
		this.filename = filename;
	}

	public boolean isNewDiagram() {
		return isNewDiagram;
	}

	public void setNewDiagram(boolean isNewDiagram) {
		this.isNewDiagram = isNewDiagram;
	}

	private Diagram(){}
	
	/** Singleton Constructor
	 * @return Diagram
	 */
	public static Diagram getInstance(){
		if(diagram==null)
			diagram=new Diagram();
		return diagram;
	}
	public static void setInstance(Diagram umlDiagram){
		diagram=umlDiagram;
	}
	public ArrayList<Element> getElements() {
		if(elements ==null)
			elements= new ArrayList<Element>();
		return this.elements;
	}
	public void setElements(ArrayList<Element> elements) {
		this.elements = elements;
	}
	public String getHelpText() {
		return helpText;
	}
	public void setHelpText(String helpText) {
		this.helpText = helpText;
	}
	public int getZoomLevel() {
		return zoomLevel;
	}
	public void setZoomLevel(int zoomLevel) {
		this.zoomLevel = zoomLevel;
	}
	
	
}
